package layout

import android.text.Html
import android.widget.TextView
import androidx.databinding.BindingAdapter

/**
 * Created by Dadong on 2020/3/23
 * Describe:
 */

@BindingAdapter("html")
fun bindHtml(textView: TextView, text: String) {
    textView.text = Html.fromHtml(text)
}